package main

import "fmt"

type Teacher struct {
	Name  string
	Age   int
	Hobby []string
	map1  map[string]string
}

type Sdu struct {
	Name string
	Age  int
	Teacher
}

func main() {
	fmt.Println("-----------------------------------------------")
	hobby := make([]string, 2, 3)
	hobby[0] = "黑悟空"
	hobby[1] = "双人"
	map1 := make(map[string]string)
	map1["name"] = "哈哈"
	s1 := Sdu{
		Name: "chj",
		Age:  2,
		Teacher: Teacher{
			"ssy",
			22,
			hobby,
			map1,
		},
	}
	fmt.Printf("%#v\n", s1)
	fmt.Printf("%v\n", s1.Hobby)
}
